import Layout from '@/layout'

const resourceRouter = {
  path: '/resource',
  component: Layout,
  redirect: '/resource/database-product',
  name: 'Resource',
  meta: {
    title: '数据资源管理',
    icon: 'el-icon-suitcase-1'
  },
  children: [
    {
      path: 'database-product',
      component: () => import('@/views/resource/database-product/index'),
      name: 'DatabaseProduct',
      meta: {
        title: '数据库产品管理',
        icon: 'database',
        roles: ['admin']
      }
    }
  ]
}

export default resourceRouter